public class Thing
{
     private String name;
     private int energy;
     private int cost;
     
     public Thing(String name, int energy, int cost) {
         this.name = name;
         this.energy = energy;
         this.cost = cost;
     }
     
     public int getEnergy() {return this.energy;}
     
     public String getName() {return this.name;}
     
     public int getPrice() { return this.cost; }
}
